// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, getRequestImg, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getDriverVoList = (params) => {
    return getRequest('/driverInfoVo/getDriverInfo', params)
}

// 分页获取数据
export const getCompanyVoList = (params) => {
    return getRequest('/companyInfoVo/getCompanyInfo', params)
}


// 货主图片id
export const getCompanyViewId = (params) => {
    return postRequest('/companyInfoVo/getPicId', params)
}


// 获取身份证信息
export const getIdCarDInfo = (params) => {
    return postRequest('/idCard/getIdCarDInfo', params)
}

export const saveIdCardInfo = (params) => {
    return postRequest('/idCard/saveIdCardInfo', params)
}


// 获取身份证信息
export const getCompanyLicenseInfo = (params) => {
    return postRequest('/companyLicense/getCompanyLicenseInfo', params)
}
//获取企业信息
export const getCompanyEnterprise = (params) => {
    return postRequest('/companyLicense/getCompanyEnterprise', params)
}

export const saveCompanyLicenseInfo = (params) => {
    return postRequest('/companyLicense/saveCompanyLicenseInfo', params)
}



export const getVehicleLicenseInfo = (params) => {
    return postRequest('/vehicleLicense/getVehicleLicenseInfo', params)
}


export const getDriverLicenseId = (params) => {
    return postRequest('/vehicleLicense/getDriverLicenseId', params)
}

 
export const cancellationVehicle = (params) => {
    return getRequest('/vehicleLicense/cancellationVehicle', params)
}

export const saveVehicleLicenseInfo = (params) => {
    return postRequest('/vehicleLicense/saveVehicleLicenseInfo', params)
}


export const getDriverLicenseInfo = (params) => {
    return postRequest('/driverLicense/getDriverLicenseInfo', params)
}

export const saveDriverLicenseInfo = (params) => {
    return postRequest('/driverLicense/saveDriverLicenseInfo', params)
}

export const getWorkLicenseInfo = (params) => {
    return postRequest('/workLicense/getWorkLicenseServiceInfo', params)
}

export const saveWorkLicenseInfo = (params) => {
    return postRequest('/workLicense/saveWorkLicenseInfo', params)
}

export const viewImg = (id) => {
    return getRequestImg(`/file/view/${id}`)
}

export const getCompanyPicId = (params) => {
    return getRequest(`/companyUser/getCompanyPicId`, params)
}

export const getDriverPicId = (params) => {
    return getRequest(`/driverUser/getDriverPicId`, params)
}


export const certificationEnterpriseStatus = (params) => {
    return getRequest(`/companyLicense/updateRegistStatus`, params)
}

export const vehicleManagementList = (params) => {
    return getRequest(`/vehicleLicense/vehicleManagementList`, params)
}

export const vehicleRegistStatus = (params) => {
    return getRequest(`/vehicleLicense/vehicleRegistStatus`, params)
}


export const getNotJoinFleetDriverList = (params) => {
    return getRequest(`/userDriverGroup/getNotJoinFleetDriverList`, params)
}

export const getNotJoinFleetVehiclesList = (params) => {
    return getRequest(`/vehicleDriverGroupRelation/getNotJoinFleetVehiclesList`, params)
}


export const addDriverGroup = (params) => {
    return postRequest(`/userDriverGroup/addDriverGroup`, params)
}


export const updateDriverGroup = (params) => {
    return postRequest(`/userDriverGroup/updateDriverGroup`, params)
}


export const deleteDriverGroup = (params) => {
    return postRequest(`/userDriverGroup/deleteDriverGroup`, params)
}


export const getFleetList = (params) => {
    return postRequest(`/vehicleDriverGroupRelation/getFleetList`, params)
}


export const getGroupVehicle = (params) => {
    return postRequest(`/vehicleDriverGroupRelation/getGroupVehicle`, params)
}


export const addVehicle = (params) => {
    return postRequest(`/vehicleDriverGroupRelation/addVehicle`, params)
}

export const deleteVehicle = (params) => {
    return postRequest(`/vehicleDriverGroupRelation/deleteVehicle`, params)
}


export const getGroupDrivers = (params) => {
    return postRequest(`/userDriverGroupRelation/getGroupDrivers`, params)
}


export const addDrivers = (params) => {
    return getRequest(`/userDriverGroupRelation/addDrivers`, params)
}


export const deleteDrivers = (params) => {
    return getRequest(`/userDriverGroupRelation/deleteDrivers`, params)
}


export const addDriverVehcile = (params) => {
    return getRequest(`/userDriverGroupRelation/addDriverVehcile`, params)
}


export const deleteDriverVehcile = (params) => {
    return getRequest(`/userDriverGroupRelation/deleteDriverVehcile`, params)
}


export const getJoinFleetVehiclesList = (params) => {
    return postRequest(`/vehicleDriverGroupRelation/getJoinFleetVehiclesList`, params)
}

export const getTransportationCompany = (params) => {
    return postRequest(`/actualCarrier/getTransportationCompany`, params)
}

export const saveTransportCompanyInfo = (params) => {
    return postRequest(`/actualCarrier/saveTransportCompanyInfo`, params)
}


export const getTransportationCompanyVo = (params) => {
    return postRequest(`/actualCarrier/getTransportationCompanyVo`, params)
}

export const saveDriverInfo = (params) => {
    return postRequest(`/driverUser/saveDriverInfo`, params)
}

export const getCarrierDriverVo = (params) => {
    return postRequest(`/driverInfoVo/getCarrierDriverVo`, params)
}


export const getOwnerUserInfo = (params) => {
    return postRequest(`/actualCarrier/getOwnerUserInfo`, params)
}

export const getIndividualUserInfo = (params) => {
    return postRequest(`/actualCarrier/getIndividualUserInfo`, params)
}

export const getDriverInformation = (params) => {
    return postRequest(`/driverInfoVo/getDriverInformation`, params)
}

export const saveOwnerInfo = (params) => {
    return postRequest(`/actualCarrier/saveOwnerInfo`, params)
}

export const saveIndividualInfo = (params) => {
    return postRequest(`/actualCarrier/saveIndividualInfo`, params)
}



export const updateRegistStatus = (params) => {
    return getRequest(`/actualCarrier/updateRegistStatus`, params)
}

export const userLoginistStatus = (params) => {
    return getRequest(`/userLogin/updateRegistStatus`, params)
}

export const getPcJoinDriverVo = (params) => {
    return postRequest(`/driverInfoVo/getPcJoinDriverVo`, params)
}

export const getPcTransportVehicleList = (params) => {
    return postRequest(`/vehicleLicense/getPcTransportVehicleList`, params)
}

export const rebindingVehicle = (params) => {
    return postRequest(`/actualCarrier/rebindingVehicle`, params)
}

export const rebindingCarOwner = (params) => {
    return postRequest(`/actualCarrier/rebindingCarOwner`, params)
}

export const getdriverPage = (params) => {
    return getRequest(`/orderGoods/getdriverPage`, params)
}

export const updateGpsEquipment = (params) => {
    return postRequest(`/vehicleLicense/updateGpsEquipment`, params)
}

export const getCompanyDriverInfo = (params) => {
    return getRequest(`/driverInfoVo/getCompanyDriverInfo`, params)
}


export const companyVehicleManagementList = (params) => {
    return getRequest(`/vehicleLicense/companyVehicleManagementList`, params)
}

export const getCompanyDriverList = (params) => {
    return postRequest(`/companyDriver/getCompanyDriverList`, params)
}

export const getCompanyRelationshipList = (params) => {
    return postRequest(`/companyDriver/getCompanyRelationshipList`, params)
}

export const saveCompanyDriver = (params) => {
    return postRequest(`/companyDriver/saveCompanyDriver`, params)
}

export const deleteCompanyDriver = (params) => {
    return postRequest(`/companyDriver/deleteCompanyDriver`, params)
}


export const getCompanyActualdriverPage = (params) => {
    return postRequest(`/orderGoods/getCompanyActualdriverPage`, params)
}